package repository

import (
	"ruoyi/domain/entity/common"
	"ruoyi/domain/entity/monitor"
	"ruoyi/domain/entity/response"
)

type SysJobRepository interface {
	SelectJobList(params common.SearchTableDataParam, isPage bool) ([]monitor.SysJob, int64)

	FindJobById(jobId string) monitor.SysJob

	SaveJob(jobParam monitor.SysJobParam, userId interface{}) response.Response

	UploadJob(jobParam monitor.SysJob, userId interface{}) response.Response

	SelectJobLogList(params common.SearchTableDataParam) ([]monitor.SysJobLog, int64)

	FindJobLogById(id string) response.Response
	JobLogAdd(param monitor.SysJobLog) response.Response
	ChangeStatus(jobId string, status string)
	DeleteJob(jobIds string)
	ClearJobLog() response.Response
}
